package com.xiaoyu.awakening.records.api;

import com.xiaoyu.awakening.common.core.dto.Page;
import com.xiaoyu.awakening.common.core.dto.Result;
import com.xiaoyu.awakening.records.vo.RecordsSearchRequestVo;
import com.xiaoyu.awakening.records.vo.RecordsSearchResponseVo;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 检索
 *
 * @author wangxiaoyu
 * @since v1.0
 */
@RequestMapping("/api/v1/awk-records")
@Schema(name = "操作记录检索")
public interface IAwkRecordsControllerApi {

    @PostMapping(value = "/search")
    @ResponseBody
    Result<Page<RecordsSearchResponseVo>> search(@RequestBody RecordsSearchRequestVo recordsSearchRequestVo);
}
